package com.net.shop.car.manager.api.volley.request;

import org.json.JSONException;
import org.json.JSONObject;

import com.net.shop.car.manager.api.volley.Request;
import com.net.shop.car.manager.utils.Constants;
import com.net.shop.car.manager.utils.Constants.ServiceType;
import com.net.shop.car.manager.utils.LogUtils;

/**
 * 请使用SellerInfoPageResponse作响应
 * @author Deve
 *
 */
public class GetServiceOtherGoodsPage extends Request {
	
	private final int page;
	private final String sellerId;
	private final ServiceType type;

	/**
	 * @param type
	 * @param page
	 * @param sellerId
	 * @param type2
	 */
	public GetServiceOtherGoodsPage( int page, String sellerId,
			ServiceType type) {
		super(Constants.SELLER_INFO_PAGE);
		this.page = page;
		this.sellerId = sellerId;
		this.type = type;
	}



	@Override
	public void extensionJSON(JSONObject jsonObject) {
		try {
			jsonObject.put("dic_type", type.description);
			jsonObject.put("sellerid", sellerId);
			jsonObject.put("page", page);
		} catch (JSONException e) {
			LogUtils.e(e.getMessage());
		}
	}

}
